<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title><?php echo $goodsData['gname'];?></title>
	<link rel="stylesheet" type="text/less" href="http://localhost/shop/Template/default/style/main.less" />
	<link rel="stylesheet" href="http://localhost/shop/Template/default/style/bootstrap.min.css" />
	<link rel="stylesheet" href="http://localhost/shop/Template/default/style/font-awesome.min.css">
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/less-1.7.5.min.js"></script>
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/main.js"></script>
	<link href="http://localhost/shop/Template/default/style/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
	<script type='text/javascript' src='http://localhost/shop/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/shop/hdphp/Extend/Org/hdjs/hdui/css/hdui.css' rel='stylesheet' media='screen'>
<script src='http://localhost/shop/hdphp/Extend/Org/hdjs/hdui/js/hdui.js'></script>
<link href='http://localhost/shop/hdphp/Extend/Org/hdjs/hdvalidate/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/shop/hdphp/Extend/Org/hdjs/hdvalidate/js/hdvalidate.js'></script>
<script src='http://localhost/shop/hdphp/Extend/Org/cal/lhgcalendar.min.js'></script>
<script src='http://localhost/shop/hdphp/Extend/Org/hdjs/hdslide/js/hdslide.js'></script>
<script type='text/javascript'>
HOST = 'http://localhost';
ROOT = 'http://localhost/shop';
WEB = 'http://localhost/shop/index.php';
URL = 'http://localhost/shop/index.php/Index/Goods/index/gid/49';
APP = 'http://localhost/shop/Application';
COMMON = 'http://localhost/shop/Application/Common';
HDPHP = 'http://localhost/shop/hdphp';
HDPHPDATA = 'http://localhost/shop/hdphp/Data';
HDPHPEXTEND = 'http://localhost/shop/hdphp/Extend';
MODULE = 'http://localhost/shop/index.php/Index';
CONTROLLER = 'http://localhost/shop/index.php/Index/Goods';
ACTION = 'http://localhost/shop/index.php/Index/Goods/index';
STATIC = 'http://localhost/shop/Static';
HDPHPTPL = 'http://localhost/shop/hdphp/Lib/Tpl';
VIEW = 'http://localhost/shop/Application/Index/View';
PUBLIC = 'http://localhost/shop/Application/Index/View/Public';
CONTROLLERVIEW = 'http://localhost/shop/Application/Index/View/Goods';
HISTORY = 'http://localhost/shop/index.php/Index/List/index/cid/16';
TEMPLATE = 'http://localhost/shop/Template/default';
</script>
</head> 
<body>
<!-- 头部开始 -->
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!-- 头部开始 -->
<div id="top">
	<div class="nav">
		<div class="left">
			<a href="#">小米网</a>
			<span>|</span>
			<a href="#">MIUI</a>
			<span>|</span>
			<a href="#">米聊</a>
			<span>|</span>
			<a href="#">游戏</a>
			<span>|</span>
			<a href="#">多看阅读</a>
			<span>|</span>
			<a href="#">云服务</a>
			<span>|</span>
			<a href="#">小米网移动版</a>
		</div>
		<div class="right">
			<?php if($_SESSION["u_username"]){?>
				<a href="javascript:;">欢迎回来!</a>
				<span></span>
				<a href="<?php echo U('Login/index');?>"><?php echo $_SESSION["u_username"] ?></a>
				<span>|</span>
				<a href="<?php echo U('Menber/index');?>">个人中心</a>
				<span>|</span>
				<a href="<?php echo U('Login/out');?>">退出</a>
			
			<?php  }else{ ?>
				<a href="<?php echo U('Login/qq_login');?>"><img src="http://localhost/shop/Template/default//images/login.png" alt="" /></a>
				<span>|</span>
				<a href="<?php echo U('Login/index');?>">登录</a>
				<span>|</span>
				<a href="<?php echo U('Register/index');?>">注册</a>
			<?php }?>
		</div>
	</div>
	<div class="logo">
		<a href="http://localhost/shop"><img src="http://localhost/shop/Template/default/images/logo.png" alt="" /></a>
		
		<a class="action" href="">疯狂十一 100万台小米手机免预约购买 </a>
		<form action="" class="search">
			<input type="text" class="search-text" placeholder="搜索你需要的商品" />
			<a href="" class="fa fa-search btn" ></a>
		</form>
		<div class="cart">
			<div class="cart_section">
				<i class="fa fa-shopping-cart"></i>
				<a href="">购物车</a>
			</div>
			<div class="cart_list" style="display:none">
			</div>
			<input type="hidden" name="uid" value="<?php echo $_SESSION['uid'];?>" />
		</div>
	</div>
	<div class="menu">
		<div class="left <?php if($is_index == 1){?>menu_left1 <?php  }else{ ?>menu_left <?php }?> ">
			<h2>全部商品分类</h2>
			<i class="fa fa-angle-down fa-2x"></i>
			<ul class="list" <?php if($is_index == 1){?> style="display:block" <?php }?>>
				<?php if(is_array($cateData)){?><?php  foreach($cateData as $key=>$v){ ?>
					<?php if($v['pid'] == 0){?>
						<li class="one">
							<div class="box">
								<a class="category" href="<?php echo U('List/index',array('cid'=>$v[cid]));?>"><?php echo $v['cname'];?></a>
								<div class="box_down">
									<?php if(is_array($v['son'])){?><?php  foreach($v['son'] as $key=>$value){ ?>
										<?php if($key<3){?>
											<a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a>
										<?php }?>
									<?php }}?>
								</div>
								<!-- <div class="box_right" style="display:none">
									<ul>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
									</ul>
									<div class="other">
										<p>优选配件</p>
										<p><a href="">小米手环 79</a></p>
										<p><a href="">小米活塞耳机 99</a></p>
									</div>
								</div> -->
							</div>
						</li>
					<?php }?>
				<?php }}?>
			</ul>
		</div>
		<div class="right menu_right">
			<ul>
				<li><a class="category" href="http://localhost/shop">首页</a></li>
				<li>
					<a class="category" href="javascript:;">小米手机</a>
					<div class="other" style="display:none" >
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li>
					<a class="category" href="">红米</a>
					<div class="other" style="display:none">
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li><a class="category" href="">小米平板</a></li>
				<li><a class="category" href="">小米电视</a></li>
				<li>
					<a class="category" href="">盒子</a>
					<div class="other" style="display:none">
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li>
					<a class="category" href="">路由器</a>
					<div class="other" style="display:none">
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li><a class="category" href="#">合约机</a></li>
				<li><a class="category" href="#">服务</a></li>
				<li><a class="category" href="#">社区</a></li>
			</ul>
		</div>
	</div>
</div>
<a name="buy"></a>
<!-- 头部结束 -->
<!-- 内页位置开始 -->
<div id="postion">
	<a href="http://localhost/shop">首页</a>/
	<a href="<?php echo U('List/index',array('cid'=>$cateInfo['cid']));?>"><?php echo $cateInfo['cname'];?></a>/
	<a href="<?php echo U('Goods/index',array('gid'=>$goodsData['gid']));?>"><?php echo $goodsData['gname'];?></a>/
</div>
<!-- 内页位置结束 -->
<!-- 产品详情页面开始 -->
<div id="shop">
	<div class="top">
		<div class="img">
			<div class="big_pic">
				<?php if(is_array($detailData['pic'])){?><?php  foreach($detailData['pic'] as $key=>$v){ ?>
					<?php if($key<1){?>
						<img src="http://localhost/shop/<?php echo $v;?>" alt="" width="350" height="350" />
					<?php }?>
				<?php }}?>
			</div>
			<div class="small_pic">
				<ul>
					<?php if(is_array($detailData['pic'])){?><?php  foreach($detailData['pic'] as $key=>$v){ ?>
						<li><img src="http://localhost/shop/<?php echo $v;?>" alt="" /></li>
					<?php }}?>
				</ul>
			</div>
			<span class="shop_turn_left"></span>
			<span class="shop_turn_right"></span>
		</div>
		<div class="info">
			<div class="addshop" style="display:none">
				<img src="http://localhost/shop/<?php echo $goodsData['pic'];?>" alt="" width="70">
			</div>
			<h1><?php echo $goodsData['gname'];?></h1>
			<p class="price"><?php echo $goodsData['shopprice'];?>元
			</p>
			<input type="hidden" name="shopprice" value="<?php echo $goodsData['shopprice'];?>" />
			<p>市场价: 
				<del>
				<?php echo $goodsData['marketprice'];?> 
				</del> 
				库存: 
				<span class='inventory'><?php echo $goodsCount;?></span>
			</p>
			<div class="star">
				<div data-content="" class="rating-container rating-gly-star" style="font-size:14px">
					<div style="width:<?php echo $goodsData['rank'];?>%;" data-content="" class="rating-stars">
						
					</div>
				</div>
			<a href=""><?php echo $goodsData['cnum'];?>人评价</a> | <a href=""><?php echo $goodsData['click'];?>个提问</a></div>
			<div class="shop_other">
				<ul>
					<?php if(is_array($typeAttr)){?><?php  foreach($typeAttr as $key=>$v){ ?>
						<li>
							<p><?php echo $v['tname'];?></p>
							<?php if(is_array($v['option'])){?><?php  foreach($v['option'] as $k=>$value){ ?>
								<span  gaid='<?php echo $value['gaid'];?>' <?php if($k == 0){?>class='select'<?php }?>><?php echo $value['gtvalue'];?><input type="hidden" name="added" value="<?php echo $value['added'];?>" /></span>
							<?php }}?>
						</li>
					<?php }}?>
				</ul>
				<input type="hidden" name="gid" value="<?php echo $goodsData['gid'];?>" />
			</div>
			<p class="shop_cart">
				<a class="cart_shop" href="javascript:;">
					<input type="hidden"  name="inventory"  value="0" />
					<input type="hidden"  name="glid"  value="0" />
					<i class="fa fa-plus"></i> 
				加入购物车
				</a>
				<a class="store" id='store' gid='<?php echo $goodsData['gid'];?>' href="javascript:;" title="收藏商品">
				<i class="fa fa-heart"></i>
				</a>
			</p>
			<p class="more">
				<a href="<?php echo U('List/index',array('cid'=>$cateInfo['cid']));?>"><i class='fa fa-th-large'></i> 更多同类产品</a>
			</p>
		</div>
	</div>
	<div class="center">
		<div class="recommend">
			<div class="browse">
				<h2>最近浏览</h2>
				<ul>
					<?php if(is_array($browseData)){?><?php  foreach($browseData as $key=>$v){ ?>
						<li><a href="<?php echo U('Goods/index',array('gid'=>$v['gid']));?>"><img src="http://localhost/shop/<?php echo $v['pic'];?>" alt="<?php echo $v['gname'];?>" /></a></li>
					<?php }}?>
				</ul>
			</div>
			<div class="other">
				<h2>同类型的手机</h2>
				<ul>
					<?php if(is_array($goodsArr)){?><?php  foreach($goodsArr as $key=>$v){ ?>
						<li>
							<a href="<?php echo U('Goods/index',array('gid'=>$v['gid']));?>">
								<img src="http://localhost/shop/<?php echo $v['pic'];?>" alt="" / width="80">
								<p class="title"><?php echo $v['gname'];?></p>
								<p><?php echo $v['shopprice'];?></p>
								<p class="star"><span></span></p>
							</a>
						</li>
					<?php }}?>
				</ul>
			</div>
		</div>
		<div class="details">
			<div class="box_hd">
				<ul>
					<li><a href="#content" style="color: #FF4A00;">详细信息</a></li>
					<li><a href="#parameter">规格参数</a></li>
					<li><a href="#assess">评价晒单</a></li>
					<li><a href="#ask">商品提问</a></li>
					<li><a href="#question">售后服务</a></li>
				</ul>
			</div>
			<a name="content"></a>
			<div class="content">
				<?php echo $detailData['intro'];?>
			</div>
			<div class="parameter">
				<a name="parameter"></a>	
				<h2>规格参数</h2>
				<table>
					<tr>
						<td width="300px">商品编号</td>
						<td width="600px">1140900002</td>
					</tr>
					<tr>
						<td>颜色</td>
						<td>紫红</td>
					</tr>
				</table>
			</div>
			<div class="parameter">
				<a name="parameter"></a>	
				<h2>售后问题</h2>
				<?php echo $detailData['service'];?>
			</div>
			<a name="assess"></a>
			<div class="assess">
				
				<h2>用户评价</h2>
				<!-- <div class="score"> -->
					
				<!-- </div> -->
				<ul class="assess_list">
					<?php if($commentData){?>
						<?php if(is_array($commentData)){?><?php  foreach($commentData as $key=>$v){ ?>
							<li>
								<a href="">
									<img src="http://localhost/shop/<?php echo $v['pic'];?>" alt="" width="55" />
									<span><?php echo $v['uname'];?></span>
								</a>
								<div class="a_star">
									<div data-content="" class="rating-container rating-gly-star" style="font-size:14px">
										<div style="width:<?php echo $v['star'];?>%;" data-content="" class="rating-stars">
										</div>
									</div>
								</div>
								<p class="a_content"><?php echo $v['content'];?></p>
								<p class="a_time"><?php echo $v['time'];?></p>
							</li>
						<?php }}?>
					<?php  }else{ ?>
					<span class='null'>当前商品没有评价</span>
					<?php }?>
				</ul>
			</div>
			<a name="ask"></a>
			<div class="ask">
				
				<h2>产品提问</h2>
				<ul class="ask_list">
					<?php if($askData){?>
						<?php if(is_array($askData)){?><?php  foreach($askData as $key=>$v){ ?>
							<li>
								<p class="shop_ask"><span>Q</span><?php echo $v['content'];?></p>
								<p class="shop_answer"><span>A</span><?php if($v[answer]){?><?php echo $v['answer'];?><?php  }else{ ?>拼命的等待客服回复...<?php }?></p>
								<p class="a_time"><?php echo $v['time'];?></p>
							</li>
						<?php }}?>
					<?php  }else{ ?>
					<span class='null'>当前商品没有提问</span>
					<?php }?>

				</ul>
				<form action="">
					<span><i class="fa fa-question-circle"></i>我要提问</span>
					<input class="text" placeholder="您的提问将会发给已经购买者、小米官方客服和产品经理" type="text" name="gask">
					<input type="button" class="askbtn" value="向购买者提问"  gid='<?php echo $goodsData['gid'];?>'/>
				</form>
			</div>
			<a name="question"></a>
			<div class="question">
				<h2>常见问题</h2>
				<p class="title">如何挑选商品？</p>
				<p>点击页面上方“加入购物车”按钮或页面下拉时顶部导航上的“加入购物车”按钮将商品加入购物车，再点击页面右上角的“购物车”前往购物车页面进行结算。</p>
				<p class="title">收藏商品功能</p>
				<p>点击“收藏按钮”后，按钮中的白心亮起,背景由黑色变为黄色代表收藏成功，再次点击取消收藏。您可在“个人中心”中的我的收藏查看所有收藏商品。</p>
				<p class="title">维修网点销售配件吗？</p>
				<p>所有授权维修网点具备维修手机标配里配件的功能，部分指定授权维修网点可销售标配及部分官网配件，具体销售的产品及价格请以修网点信息为准。</p>
				<p class="title">退换货办理流程</p>
				<p>您可拨打小米客服中心400-100-5678与客服人员沟通，或登录小米网“我的订单” ->“订单详情”下方点击“申请售后服务”并填写相应信息，小米看到您的申请，会安排工作人员与您进行退换货质量确认并办理相关事宜.</p>
			</div>
		</div>
	</div>
</div>
<!-- 产品详情页面结束 -->
<!-- 固定导航开始 -->
<div id="goods_fixed" style="display:none;">
	<div class="box">
		<div class="left">
			<img src="http://localhost/shop/<?php echo $goodsData['pic'];?>" alt="" width="40" height="40" />
			<p><?php echo $goodsData['gname'];?></p>
			<p class="price"><?php echo $goodsData['shopprice'];?>元</p>
		</div>
		<div class="right">
			<ul>
				<li><a href="#content" style="color: #FF4A00;">详细信息</a></li>
				<li><a href="#parameter">规格参数</a></li>
				<li><a href="#assess">评价晒单</a></li>
				<li><a href="#ask">商品提问</a></li>
				<li><a href="#question">售后服务</a></li>
			</ul>
			<p class="shop_cart">
				<a class="cart_shop" href="#buy"><i class="fa fa-plus"></i> 加入购物车</a>
			</p>
		</div>
	</div>
</div>
<!-- 固定导航结束 -->
<!-- // 服务样式开始 -->
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><div id="footer">
	<ul class="serve">
		<li>
			<a href="">
				<i class="fa fa-wrench fa-2x"></i>
				<span>1小时快修服务</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-history fa-2x"></i>
				<span>7天无理由退货</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-refresh fa-2x"></i>
				<span>15天免费换货</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-gift fa-2x"></i>
				<span>满150元包邮</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-phone-square fa-2x"></i>
				<span>460余家售后网点</span>
			</a>
		</li>
	</ul>
	<div class="other">
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<div class="phone">
			<p class="phones">400-100-5678</p>
			<p class="time">国庆假期 9:00 - 18:00 </p>
			<p class="data">（10月1日 - 7日）</p>
			<a class="hours">24不时在线客服</a>
		</div>
	</div>
	<p class="copyright">©mi.com 京ICP证110507号 京ICP备10046444号 京公网安备1101080212535号 京网文[2014]0059-0009号</p>
</div>
<!-- // 服务样式结束 -->
</body>
</html>